import React from "react";
import { ReactNode } from "react";

interface Props {
  msg: string;
  // 可以读取标签内的内容
  children: ReactNode;
}

const Alert = ({ msg, children }: Props) => {
  return (
    <div className="alert alert-primary">
      {msg}---{children}
    </div>
  );
};

export default Alert;
